package com.cqupt.mapper;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public interface TopologyMapper {
    /**
     * 查询所有机房
     * @param params
     * @return
     */
    List<Map<String,Object>> selectAllEngineRooms(Map<String,String> params);

    /**
     * 创建机房
     * @param params
     * @return
     */
    int insertEngineRoom(Map<String,Object> params);

    /**
     * 更新机房
     * @param params
     * @return
     */
    int updateEngineRoom(Map<String,Object> params);

    /**
     * 删除机房
     * @param params
     * @return
     */
    int deleteEngineRoom(ArrayList<String> params);

    /**
     * 创建机柜
     * @param params
     * @return
     */
    int insertCabinet(Map<String,Object> params);

    /**
     * 查询所有机柜
     * @param params
     * @return
     */
    List<Map<String,Object>> selectCabinets(Map<String,Object> params);

    /**
     * 删除某个机柜
     * @param params
     * @return
     */
    int deleteCabinetBySerial_number(ArrayList<String> params);
}
